//
// Stock.cpp for plazza in /home/peelou/SVN/pizzaillo
// 
// Made by gery baudry
// Login   <baudry_g@epitech.net>
// 
// Started on  Mon Apr 15 14:49:55 2013 gery baudry
// Last update Mon Apr 15 20:17:17 2013 florian dewulf
//

#include	"Stock.hpp"

Stock::Stock(int time) : _doe(5), _tomato(5), _gruyere(5), _ham(5), _mush(5), _steak(5), _chevre(5), _lovechief(5), _eggplant(5), _time(time)
{
}

Stock::~Stock()
{
}

void		Stock::re_stock()
{
  this->_doe += 1;
  this->_tomato += 1;
  this->_gruyere += 1;
  this->_ham += 1;
  this->_mush += 1;
  this->_steak += 1;
  this->_chevre += 1;
  this->_lovechief += 1;
  this->_eggplant += 1;
}

/*
** Getter
*/

u_int		Stock::getDoe() const {
  return (this->_doe);
}

u_int		Stock::getTomato() const {
  return (this->_tomato);
}

u_int		Stock::getGruyere() const {
  return (this->_gruyere);
}

u_int		Stock::getHam() const {
  return (this->_ham);
}

u_int		Stock::getMush() const {
  return (this->_mush);
}

u_int		Stock::getSteak() const {
  return (this->_steak);
}

u_int		Stock::getChevre() const {
  return (this->_chevre);
}

u_int		Stock::getLovechief() const {
  return (this->_lovechief);
}

u_int		Stock::getEggplant() const {
  return (this->_eggplant);
}

int		Stock::getTime() const {
  return (this->_time);
}

/*
** Setter
*/

void		Stock::setDoe(u_int doe) {
  this->_doe = doe;
}

void		Stock::setTomato(u_int tomato) {
  this->_tomato  = tomato;
}

void		Stock::setGruyere(u_int gruyere) {
  this->_gruyere = gruyere;
}

void		Stock::setHam(u_int ham) {
  this->_ham = ham;
}

void		Stock::setMush(u_int mush) {
  this->_mush = mush;
}

void		Stock::setSteak(u_int steak) {
  this->_steak = steak;
}

void		Stock::setChevre(u_int chevre) {
  this->_chevre = chevre;
}

void		Stock::setLovechief(u_int lovechief) {
  this->_lovechief = lovechief;
}

void		Stock::setEggplant(u_int eggplant) {
  this->_eggplant = eggplant;
}
